<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>后台管理</title>
    <link rel="stylesheet" type="text/css" href="./main/view/back/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="./main/view/back/css/main.css"/>
    <script type="text/javascript" src="./main/view/back/js/jquery.js"></script>
    <script type="text/javascript" src="./main/view/back/js/modernizr.min.js"></script>
</head>
<body>
<div class="topbar-wrap white">
    <div class="topbar-inner clearfix">
        <div class="topbar-logo-wrap clearfix">
            <h1 class="topbar-logo none"><a href="index.html" class="navbar-brand">后台管理</a></h1>
            <ul class="navbar-list clearfix">
                <li><a class="on" href="javascript:void(0);">后台</a></li>
                <li><a href="./index.php?p=home&c=Index&a=index" target="_blank">网站首页</a></li>
            </ul>
        </div>
        <div class="top-info-wrap">
            <ul class="top-info-list clearfix">
                <li><a href="./index.php?p=back&c=Index&a=logout">退出</a></li>
            </ul>
        </div>
    </div>
</div>
<div class="container clearfix">
    <div class="sidebar-wrap">
        <div class="sidebar-title">
            <h1>菜单</h1>
        </div>
        <div class="sidebar-content">
            <ul class="sidebar-list">
                <li>
                    <a href="#"><i class="icon-font">&#xe003;</i>常用操作</a>
                    <ul class="sub-menu">
                        <li><a href="./index.php?p=back&c=Article&a=list"><i class="icon-font">&#xe005;</i>文章管理</a></li>
                    </ul>
                </li>
                <li>
                    <a href="#"><i class="icon-font">&#xe018;</i>系统管理</a>
                    <ul class="sub-menu">
                        <li><a href="javascript:alert('功能完善中...');"><i class="icon-font">&#xe017;</i>系统设置</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
    <!--/sidebar-->
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list">
                <i class="icon-font"></i>
                <a href="./index.php?p=back&c=Index&a=index">首页</a><span class="crumb-step">&gt;</span>
                <a class="crumb-name" href="./index.php?p=back&c=Article&a=list">文章管理</a>
                <span class="crumb-step">&gt;</span><span>新增文章</span>
            </div>
        </div>
        <div class="result-wrap">
            <div class="result-content">
                <form action="./index.php?p=back&c=Article&a=update" method="post" id="myform" name="myform">
                    <table class="insert-tab" width="100%">
                        <tbody>
							<input type="hidden" value="<?php echo $data['article_id'];?>" name="id"/>
                            <tr>
                                <th><i class="require-red">*</i>标题：</th>
                                <td>
                                    <input class="common-text required" id="title" name="title" size="50" value="<?php echo $data['article_title'];?>" type="text">
                                    <i class="msg require-red"></i>
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>内容：</th>
                                <td>
                                    <textarea name="content" class="common-textarea" id="editor_id" cols="30" style="width: 98%;" rows="20"><?php echo $data['article_content'];?></textarea>
                                    <i class="msg require-red"></i>
                                </td>
                            </tr>
                            <tr>
                                <th></th>
                                <td>
                                    <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                                    <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                                </td>
                            </tr>
                        </tbody></table>
                </form>
            </div>
        </div>

    </div>
</div>
<script>
$(function(){
	$(".sidebar-list .sub-menu").prev().click(function() {
	   $(this).parent().find(".sub-menu").toggle("slow");
	});
	$(".btn-primary").click(function(event) {
		$(".msg").text("");
		var catid=$("#catid");
		var title=$("#title");
		var author=$("#author");
		var smallimg=$("#smallimg");
		var content=$("#content");
		if (title.val()=="") {
			title.next().text("请填写标题");
			title.focus();
			return false;
		} if(content.val()=="") {
			content.next().text("请填写内容");
			content.focus();
			return false;
		}
	});
});
</script>
<script charset="utf-8" src="./core/kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="./core/kindeditor/lang/zh_CN.js"></script>
<script>
		KindEditor.ready(function(K) {
				window.editor = K.create('#editor_id');
		});
</script>
</body>
</html>